import axios from 'axios'
import { API_USER } from '../constants/utls'


// 曾
export const add = data => axios({
    url: API_USER,
    method: 'PUT',
    data
})
// 删
export const del = data => {
    return axios({
        url: API_USER,
        method: 'DELETE',
        data
    })
}
// 改
export const update = data => axios({
    url: API_USER,
    method: 'POST',
    data
})
// 查
export const get = () => axios({
    url: API_USER
})
